import React from 'react'

type Props = {}
type Diffence = (a: number, b: number) => number;
const diffence: Diffence = function (a, b)
console.log(diffence(20, 10))

const arr = [1, 4, 3, 5, 7, 9, 6];
const arr1 = arr.sort((a, b) => a - b)
console.log(arr1)

const brr = [1, 9, 8, 7, 6, 4, 5]
const brr1 = brr.sort()
const brr2 = brr1[brr1.length - 1] - brr1[0]
console.log(brr2)
const App = (props: Props) => {
  return (
    <div>App</div>
  )
}

export default App